package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.Discussion;

public interface DiscussionDAO {

	public void initDao();

	public void save(Discussion transientInstance);

	public void delete(Discussion persistentInstance);

	public Discussion findById(java.lang.Integer id);

	public List findByExample(Discussion instance);

	public List findByProperty(String propertyName, Object value);

	public List findByContent(Object content);

	public List findByAuthorUserName(Object authorUserName);

	public List findAll();

	public Discussion merge(Discussion detachedInstance);

	public void attachDirty(Discussion instance);

	public void attachClean(Discussion instance);

	public DiscussionDAO getFromApplicationContext(ApplicationContext ctx);
}